﻿Shader "XShaderLab/SimpleShader/SimpleVertexFragmentShader"
{
    SubShader
    {
        // Vertex and Fragment shader should be writen in pass block which in compearation of 
        // Surface shader, the Vertex and Fragment shader can control more details of rendering
        Pass 
        {
            CGPROGRAM

            #pragma vertex vert
            #pragma fragment frag

            float4 vert(float4 v : POSITION) : SV_POSITION
            {
                return UnityObjectToClipPos(v);
            }

            fixed4 frag() : SV_Target
            {
                return fixed4(1.0, 0.5, 0.25, 1.0); // orange
            }

            ENDCG
        }
    }
}